﻿<UserControl x:Class="Tsina.IMEControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="50" d:DesignWidth="480" xmlns:my="clr-namespace:Tsina">

    <Grid x:Name="LayoutRoot" Background="#FF474747">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="80" />
            <ColumnDefinition Width="50" />
            <ColumnDefinition Width="50" />
            <ColumnDefinition Width="50" />
            <ColumnDefinition Width="50" />
            <ColumnDefinition Width="50" />
            <ColumnDefinition Width="50" />
            <ColumnDefinition Width="50" />
            <ColumnDefinition Width="50" />
        </Grid.ColumnDefinitions>
        <Border Grid.Column="0" BorderBrush="Silver" BorderThickness="0,0,1,0">
            <TextBlock Height="50" Width="80" Name="pinyinTextBlock" Text="" Padding="3,8,0,0" />
        </Border>
        <my:IMEButtonControl Grid.Column="1" x:Name="backspaceButton" TextAlignment="Center" FontSize="36" Height="50" Width="50" Text="&lt;-" Click="backspaceButton_Click" />
        <my:IMEButtonControl Grid.Column="2" x:Name="previousButton" TextAlignment="Center" FontSize="36" Height="50" Width="50" Text="&lt;" Click="previousButton_Click" />
        <my:IMEButtonControl Grid.Column="3" x:Name="nextButton" TextAlignment="Center" FontSize="36" Height="50" Width="50" Text="&gt;" Click="nextButton_Click" />
        <my:IMEButtonControl Grid.Column="4" x:Name="word1Button" TextAlignment="Center" FontSize="36" Height="50" Width="50" Text="" Click="wordButton_Click" />
        <my:IMEButtonControl Grid.Column="5" x:Name="word2Button" TextAlignment="Center" FontSize="36" Height="50" Width="50" Text="" Click="wordButton_Click" />
        <my:IMEButtonControl Grid.Column="6" x:Name="word3Button" TextAlignment="Center" FontSize="36" Height="50" Width="50" Text="" Click="wordButton_Click" />
        <my:IMEButtonControl Grid.Column="7" x:Name="word4Button" TextAlignment="Center" FontSize="36" Height="50" Width="50" Text="" Click="wordButton_Click" />
        <my:IMEButtonControl Grid.Column="8" x:Name="word5Button" TextAlignment="Center" FontSize="36" Height="50" Width="50" Text="" Click="wordButton_Click" />
    </Grid>
</UserControl>
